import request from "@/utils/requestMusic";

export const getHot = (params) => {
  return request({
    url: "/playlist/detail",
    method: "GET",
    data: params,
  }).then((res) => res.data);
};

export const getUrl = (params) => {
  return request({
    url: "/song/url",
    method: "GET",
    data: params,
  }).then((res) => res.data);
};

export const getSearch = (params) => {
  return request({
    url: "/search",
    method: "GET",
    data: params,
  }).then((res) => res.data);
};
